{extend name="admin@index_layout"/}
{block name="main"}
<div class="layui-card">
    <div class="layui-card-body">
        <form class="layui-form" method="post">
            <div class="layui-form-item layui-form-text">
                <label>上传或者选择轮播图</label>
                <div class="layui-form-field-label">
                    <div class="js-upload-image">
                        {php}echo \util\Form::images('image'){/php}
                    </div>
                </div>
            </div>
            <div class="layui-form-item">
                <label>图片标题</label>
                <div class="w300">
                    <input type="text" name="title" autocomplete="off" placeholder="图片标题" class="layui-input">
                </div>
            </div>
            <div class="layui-form-item web_seo">
                <label>简介</label>
                <div class="w300">
                    <textarea name="description" placeholder="随便写点，可以留空" class="layui-textarea"></textarea>
                </div>
            </div>
            <div class="layui-form-item">
                <label>跳转网址</label>
                <div class="w300">
                    <input type="text" name="url" autocomplete="off" placeholder="http://" class="layui-input">
                </div>
            </div>
            <div class="layui-form-item">
                <label>所属分组</label>
                <div class="w300">
                    <select name="groupid">
                        <option value="">==分组选择==</option>
                        {volist name="Group" id="vo"}
                         <option value="{$vo.id}">{$vo.name}</option>
                        {/volist}
                    </select>
                </div>
            </div>
            <div class="layui-form-item">
                <label>或者创建新分组</label>
                <div class="w300">
                    <input type="text" name="group[name]" autocomplete="off" placeholder="创建新分组" class="layui-input">
                </div>
            </div>
            <div class="layui-form-item">
                <label>排序</label>
                <div class="w300">
                    <input type="number" name="listorder" autocomplete="off" placeholder="排序" class="layui-input" value="100">
                </div>
            </div>
            <div class="layui-form-item">
                <label>状态</label>
                <div class="w300">
                    <input type="radio" name="status" value="1" checked title="已通过" lay-filter="status">
                    <input type="radio" name="status" value="0" title="未通过" lay-filter="status">
                </div>
            </div>

            <div class="layui-form-item">
                <div>
                    <button class="layui-btn" lay-submit lay-filter="*">立即提交</button>
                    <button type="reset" class="layui-btn layui-btn-primary">重置</button>
                </div>
            </div>
        </form>
    </div>
</div>
{/block}
{block name="script"}
<script type="text/javascript">
layui.use('yznForm', function() {
    var yznForm = layui.yznForm;
    yznForm.listen();
});
</script>
{/block}